package cn.shutdown.redis;

import redis.Gcache;
import redis.GcacheClient;

/**
 * @author jiangwujie
 * @date 2021/12/3
 */
public class GcacheTest {
    public static void main(String[] args) {
        Gcache gcache = new GcacheClient(
                "zk-gcache-a.arch.gomeuat.com.cn:2181,zk-gcache-b.arch.gomeuat.com.cn:2181,zk-gcache-c.arch.gomeuat"
                        + ".com.cn:2181",
                "ARCH_MIDDLE_CACHE");
        String set = gcache.set("testKey", "testValue");
        String get = gcache.get("testKey");
        System.out.println(set + "|" + get);

        gcache.close();
    }
}
